package com.taobao.protobuf.editors;

import org.eclipse.ui.editors.text.TextEditor;

public class ProtoEditor extends TextEditor {

	private ColorManager colorManager;

	public ProtoEditor() {
		super();
		colorManager = new ColorManager();
		setSourceViewerConfiguration(new PBConfiguration(colorManager));
		setDocumentProvider(new PBDocumentProvider());
	}

	public void dispose() {
		colorManager.dispose();
		super.dispose();
	}

	@Override
	protected void createActions() {
		super.createActions();
	}
}
